usb | 您所在的位置:网站首页 › ubuntu ttyusb symlink › usb |
Finally figured it out. Using udevadm info /dev/ you are able to see the path of the device. For me it was: /devices/3530000.xhci/usb1/1-1/1-1.1/1-1.1:1.0/tty/ttyACM0 for ttyACM0, the port I actually want to map to. This path would be mostly the same for all the ports created except the index in ttyACMx and 1-1.1:1.x will be different. For my device the primary port will always us x = 0 for 1-1.1:1.x. So, I added a statement to the udev rule: DEVPATH=="/devices/3530000.xhci/usb1/1-1/1-1.*/1-1.*:1.0/tty/ttyACM*". Only the primary port would statisfy this criteria because I listed 1-1.*:1.0. |
CopyRight 2018-2019 实验室设备网 版权所有 |